package com.lyl.momanapp.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * 名字 梁亚龙
 * 时间 2017/10/10.
 * QQ邮箱 503934353@qq.com
 */

public class User {

    /**
     * 登陆bean
     */
    public class login {

        /**
         * message : 注册成功
         * result : {"user_id":11091,"nick_name":"136****4750","avatar":"http://diy.cnmi6.com/images/Default_avatar.png","original_avatar":"http://diy.cnmi6.com/images/original_Default_avatar.png","user_type":0,"is_official":0,"store_user_id":"","store_phone":"","store_name":"","store_store_id":"","is_store":0}
         * state : M00000
         */

        private String message;
        private ResultBean result;
        private String state;

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public ResultBean getResult() {
            return result;
        }

        public void setResult(ResultBean result) {
            this.result = result;
        }

        public String getState() {
            return state;
        }

        public void setState(String state) {
            this.state = state;
        }

        public class ResultBean {
            /**
             * user_id : 11091
             * nick_name : 136****4750
             * avatar : http://diy.cnmi6.com/images/Default_avatar.png
             * original_avatar : http://diy.cnmi6.com/images/original_Default_avatar.png
             * user_type : 0
             * is_official : 0
             * store_user_id :
             * store_phone :
             * store_name :
             * store_store_id :
             * is_store : 0
             */

            private int user_id;
            private String nick_name;
            private String avatar;
            private String original_avatar;
            private int user_type;
            private int is_official;
            private String store_user_id;
            private String store_phone;
            private String store_name;
            private String store_store_id;
            private int is_store;

            public int getUser_id() {
                return user_id;
            }

            public void setUser_id(int user_id) {
                this.user_id = user_id;
            }

            public String getNick_name() {
                return nick_name;
            }

            public void setNick_name(String nick_name) {
                this.nick_name = nick_name;
            }

            public String getAvatar() {
                return avatar;
            }

            public void setAvatar(String avatar) {
                this.avatar = avatar;
            }

            public String getOriginal_avatar() {
                return original_avatar;
            }

            public void setOriginal_avatar(String original_avatar) {
                this.original_avatar = original_avatar;
            }

            public int getUser_type() {
                return user_type;
            }

            public void setUser_type(int user_type) {
                this.user_type = user_type;
            }

            public int getIs_official() {
                return is_official;
            }

            public void setIs_official(int is_official) {
                this.is_official = is_official;
            }

            public String getStore_user_id() {
                return store_user_id;
            }

            public void setStore_user_id(String store_user_id) {
                this.store_user_id = store_user_id;
            }

            public String getStore_phone() {
                return store_phone;
            }

            public void setStore_phone(String store_phone) {
                this.store_phone = store_phone;
            }

            public String getStore_name() {
                return store_name;
            }

            public void setStore_name(String store_name) {
                this.store_name = store_name;
            }

            public String getStore_store_id() {
                return store_store_id;
            }

            public void setStore_store_id(String store_store_id) {
                this.store_store_id = store_store_id;
            }

            public int getIs_store() {
                return is_store;
            }

            public void setIs_store(int is_store) {
                this.is_store = is_store;
            }
        }
    }

    /**
     * 添加收货地址
     */
    public class addAddress {

        /**
         * message : 添加成功
         * result : {"address_id":6,"consignee":"梁亚龙","phone":"15538165120","prov":"河南","city":"许昌","area":"鄢陵","country":"中国","address":"河南许昌鄢陵县","address_type":0,"complete_city_info":"河南许昌鄢陵"}
         * state : M00000
         */

        private String message;
        private ResultBean result;
        private String state;

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public ResultBean getResult() {
            return result;
        }

        public void setResult(ResultBean result) {
            this.result = result;
        }

        public String getState() {
            return state;
        }

        public void setState(String state) {
            this.state = state;
        }

        public class ResultBean {
            /**
             * address_id : 6
             * consignee : 梁亚龙
             * phone : 15538165120
             * prov : 河南
             * city : 许昌
             * area : 鄢陵
             * country : 中国
             * address : 河南许昌鄢陵县
             * address_type : 0
             * complete_city_info : 河南许昌鄢陵
             */

            private int address_id;
            private String consignee;
            private String phone;
            private String prov;
            private String city;
            private String area;
            private String country;
            private String address;
            private int address_type;
            private String complete_city_info;

            public int getAddress_id() {
                return address_id;
            }

            public void setAddress_id(int address_id) {
                this.address_id = address_id;
            }

            public String getConsignee() {
                return consignee;
            }

            public void setConsignee(String consignee) {
                this.consignee = consignee;
            }

            public String getPhone() {
                return phone;
            }

            public void setPhone(String phone) {
                this.phone = phone;
            }

            public String getProv() {
                return prov;
            }

            public void setProv(String prov) {
                this.prov = prov;
            }

            public String getCity() {
                return city;
            }

            public void setCity(String city) {
                this.city = city;
            }

            public String getArea() {
                return area;
            }

            public void setArea(String area) {
                this.area = area;
            }

            public String getCountry() {
                return country;
            }

            public void setCountry(String country) {
                this.country = country;
            }

            public String getAddress() {
                return address;
            }

            public void setAddress(String address) {
                this.address = address;
            }

            public int getAddress_type() {
                return address_type;
            }

            public void setAddress_type(int address_type) {
                this.address_type = address_type;
            }

            public String getComplete_city_info() {
                return complete_city_info;
            }

            public void setComplete_city_info(String complete_city_info) {
                this.complete_city_info = complete_city_info;
            }
        }
    }
    /**
     * 设置默认地址
     */
    public class setAddress {

        /**
         * message : 设置默认地址成功
         * result : {}
         * state : M00000
         */

        private String message;
        private ResultBean result;
        private String state;

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public ResultBean getResult() {
            return result;
        }

        public void setResult(ResultBean result) {
            this.result = result;
        }

        public String getState() {
            return state;
        }

        public void setState(String state) {
            this.state = state;
        }

        public class ResultBean {
        }
    }

    /**
     * 地址列表
     */
    public static class listAddress {

        /**
         * message : 用户收货信息列表
         * result : [{"address_id":11,"consignee":"asdas","phone":"15538165120","country":"中国","prov":"江苏省","city":"常州","area":"天宁区","address":"asdas","address_type":1,"complete_city_info":"江苏省常州天宁区"},{"address_id":10,"consignee":"asdas","phone":"15538165120","country":"中国","prov":"江苏省","city":"常州","area":"天宁区","address":"sad","address_type":0,"complete_city_info":"江苏省常州天宁区"},{"address_id":9,"consignee":"asdas","phone":"15538165120","country":"中国","prov":"江苏省","city":"常州","area":"天宁区","address":"sad","address_type":0,"complete_city_info":"江苏省常州天宁区"},{"address_id":8,"consignee":"梁亚龙","phone":"15538165120","country":"中国","prov":"河南","city":"许昌","area":"鄢陵","address":"河南许昌鄢陵县","address_type":0,"complete_city_info":"河南许昌鄢陵"},{"address_id":7,"consignee":"梁亚龙","phone":"15538165120","country":"中国","prov":"河南","city":"许昌","area":"鄢陵","address":"河南许昌鄢陵县","address_type":0,"complete_city_info":"河南许昌鄢陵"},{"address_id":6,"consignee":"梁亚龙","phone":"15538165120","country":"中国","prov":"河南","city":"许昌","area":"鄢陵","address":"河南许昌鄢陵县","address_type":0,"complete_city_info":"河南许昌鄢陵"}]
         * state : M00000
         */

        private String message;
        private String state;
        private List<ResultBean> result;

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public String getState() {
            return state;
        }

        public void setState(String state) {
            this.state = state;
        }

        public List<ResultBean> getResult() {
            return result;
        }

        public void setResult(List<ResultBean> result) {
            this.result = result;
        }

        public static class ResultBean implements Parcelable {
            @Override
            public String toString() {
                return "ResultBean{" +
                        "address_id=" + address_id +
                        ", consignee='" + consignee + '\'' +
                        ", phone='" + phone + '\'' +
                        ", country='" + country + '\'' +
                        ", prov='" + prov + '\'' +
                        ", city='" + city + '\'' +
                        ", area='" + area + '\'' +
                        ", address='" + address + '\'' +
                        ", address_type=" + address_type +
                        ", complete_city_info='" + complete_city_info + '\'' +
                        '}';
            }

            /**
             * address_id : 11
             * consignee : asdas
             * phone : 15538165120
             * country : 中国
             * prov : 江苏省
             * city : 常州
             * area : 天宁区
             * address : asdas
             * address_type : 1
             * complete_city_info : 江苏省常州天宁区
             */

            private int address_id;
            private String consignee;
            private String phone;
            private String country;
            private String prov;
            private String city;
            private String area;
            private String address;
            private int address_type;
            private String complete_city_info;

            protected ResultBean(Parcel in) {
                address_id = in.readInt();
                consignee = in.readString();
                phone = in.readString();
                country = in.readString();
                prov = in.readString();
                city = in.readString();
                area = in.readString();
                address = in.readString();
                address_type = in.readInt();
                complete_city_info = in.readString();
            }

            public static final Creator<ResultBean> CREATOR = new Creator<ResultBean>() {
                @Override
                public ResultBean createFromParcel(Parcel in) {
                    return new ResultBean(in);
                }

                @Override
                public ResultBean[] newArray(int size) {
                    return new ResultBean[size];
                }
            };

            public int getAddress_id() {
                return address_id;
            }

            public void setAddress_id(int address_id) {
                this.address_id = address_id;
            }

            public String getConsignee() {
                return consignee;
            }

            public void setConsignee(String consignee) {
                this.consignee = consignee;
            }

            public String getPhone() {
                return phone;
            }

            public void setPhone(String phone) {
                this.phone = phone;
            }

            public String getCountry() {
                return country;
            }

            public void setCountry(String country) {
                this.country = country;
            }

            public String getProv() {
                return prov;
            }

            public void setProv(String prov) {
                this.prov = prov;
            }

            public String getCity() {
                return city;
            }

            public void setCity(String city) {
                this.city = city;
            }

            public String getArea() {
                return area;
            }

            public void setArea(String area) {
                this.area = area;
            }

            public String getAddress() {
                return address;
            }

            public void setAddress(String address) {
                this.address = address;
            }

            public int getAddress_type() {
                return address_type;
            }

            public void setAddress_type(int address_type) {
                this.address_type = address_type;
            }

            public String getComplete_city_info() {
                return complete_city_info;
            }

            public void setComplete_city_info(String complete_city_info) {
                this.complete_city_info = complete_city_info;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeInt(address_id);
                dest.writeString(consignee);
                dest.writeString(phone);
                dest.writeString(country);
                dest.writeString(prov);
                dest.writeString(city);
                dest.writeString(area);
                dest.writeString(address);
                dest.writeInt(address_type);
                dest.writeString(complete_city_info);

            }
        }
    }
    /**
     * 删除地址
     */
    public class deleteAddress{
        /**
         * message : 删除成功
         * result : {}
         * state : M00000
         */
        private String message;
        private ResultBean result;
        private String state;

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public ResultBean getResult() {
            return result;
        }

        public void setResult(ResultBean result) {
            this.result = result;
        }

        public String getState() {
            return state;
        }

        public void setState(String state) {
            this.state = state;
        }

        public  class ResultBean {
        }
    }

    /**
     * 修改地址
     */
    public class editAddress{

        /**
         * message : 编辑成功
         * result : {"address_id":11,"consignee":"梁亚龙1","phone":"15538165120","prov":"河南省","city":"新乡市","area":"牧野区","country":"中国","address":"河南省111","address_type":null,"complete_city_info":"河南省新乡市牧野区"}
         * state : M00000
         */

        private String message;
        private ResultBean result;
        private String state;

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public ResultBean getResult() {
            return result;
        }

        public void setResult(ResultBean result) {
            this.result = result;
        }

        public String getState() {
            return state;
        }

        public void setState(String state) {
            this.state = state;
        }

        public  class ResultBean {
            /**
             * address_id : 11
             * consignee : 梁亚龙1
             * phone : 15538165120
             * prov : 河南省
             * city : 新乡市
             * area : 牧野区
             * country : 中国
             * address : 河南省111
             * address_type : null
             * complete_city_info : 河南省新乡市牧野区
             */

            private int address_id;
            private String consignee;
            private String phone;
            private String prov;
            private String city;
            private String area;
            private String country;
            private String address;
            private Object address_type;
            private String complete_city_info;

            public int getAddress_id() {
                return address_id;
            }

            public void setAddress_id(int address_id) {
                this.address_id = address_id;
            }

            public String getConsignee() {
                return consignee;
            }

            public void setConsignee(String consignee) {
                this.consignee = consignee;
            }

            public String getPhone() {
                return phone;
            }

            public void setPhone(String phone) {
                this.phone = phone;
            }

            public String getProv() {
                return prov;
            }

            public void setProv(String prov) {
                this.prov = prov;
            }

            public String getCity() {
                return city;
            }

            public void setCity(String city) {
                this.city = city;
            }

            public String getArea() {
                return area;
            }

            public void setArea(String area) {
                this.area = area;
            }

            public String getCountry() {
                return country;
            }

            public void setCountry(String country) {
                this.country = country;
            }

            public String getAddress() {
                return address;
            }

            public void setAddress(String address) {
                this.address = address;
            }

            public Object getAddress_type() {
                return address_type;
            }

            public void setAddress_type(Object address_type) {
                this.address_type = address_type;
            }

            public String getComplete_city_info() {
                return complete_city_info;
            }

            public void setComplete_city_info(String complete_city_info) {
                this.complete_city_info = complete_city_info;
            }
        }
    }
    public  class  address_id{

        /**
         * message : 用户收货信息
         * result : {"address_id":1,"consignee":"xiexie","phone":"18050001220","prov":"北京","city":"通州","area":"","country":"中国","address":"12121212","address_type":1,"complete_city_info":"北京通州"}
         * state : M00000
         */

        private String message;
        private ResultBean result;
        private String state;

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public ResultBean getResult() {
            return result;
        }

        public void setResult(ResultBean result) {
            this.result = result;
        }

        public String getState() {
            return state;
        }

        public void setState(String state) {
            this.state = state;
        }

        public  class ResultBean {
            /**
             * address_id : 1
             * consignee : xiexie
             * phone : 18050001220
             * prov : 北京
             * city : 通州
             * area :
             * country : 中国
             * address : 12121212
             * address_type : 1
             * complete_city_info : 北京通州
             */

            private int address_id;
            private String consignee;
            private String phone;
            private String prov;
            private String city;
            private String area;
            private String country;
            private String address;
            private int address_type;
            private String complete_city_info;

            public int getAddress_id() {
                return address_id;
            }

            public void setAddress_id(int address_id) {
                this.address_id = address_id;
            }

            public String getConsignee() {
                return consignee;
            }

            public void setConsignee(String consignee) {
                this.consignee = consignee;
            }

            public String getPhone() {
                return phone;
            }

            public void setPhone(String phone) {
                this.phone = phone;
            }

            public String getProv() {
                return prov;
            }

            public void setProv(String prov) {
                this.prov = prov;
            }

            public String getCity() {
                return city;
            }

            public void setCity(String city) {
                this.city = city;
            }

            public String getArea() {
                return area;
            }

            public void setArea(String area) {
                this.area = area;
            }

            public String getCountry() {
                return country;
            }

            public void setCountry(String country) {
                this.country = country;
            }

            public String getAddress() {
                return address;
            }

            public void setAddress(String address) {
                this.address = address;
            }

            public int getAddress_type() {
                return address_type;
            }

            public void setAddress_type(int address_type) {
                this.address_type = address_type;
            }

            public String getComplete_city_info() {
                return complete_city_info;
            }

            public void setComplete_city_info(String complete_city_info) {
                this.complete_city_info = complete_city_info;
            }
        }
    }
}

